import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import newslist from '@/components/news/newslist'
import newsshow from '@/components/news/newsshow'
import car from '@/components/shopcar/car'

Vue.use(Router)

export default new Router({
  linkActiveClass :'mui-active',
  routes: [
    {
      path: '/',
      redirect: '/Home'
    },
    {
      path: '/Home',
      component: Home
    },
    {
      path: '/shopcar',
      component: car
    },
    {
      path: '/news/newslist',
      component: newslist
    },
    {
      path: '/news/newsshow/:id',
      component: newsshow
    }
  ]
})
